<template>
  <div class="home-page" style="background-color: white; border: 2px solid red; padding: 20px;">
    <h1>欢迎回来！admin</h1>
    
    <div class="stat-cards">
      <a-row :gutter="16">
        <a-col :span="12" :xs="24" :sm="12" :md="12" :lg="12">
          <a-card class="stat-card">
            <div class="card-content">
              <div class="card-left">
                <div class="icon-box blue">
                  <icon-file />
                </div>
              </div>
              <div class="card-right">
                <div class="title">线上总内容</div>
                <div class="value">
                  373.5
                  <span class="unit">W+</span>
                  <icon-arrow-rise class="trend up" />
                </div>
              </div>
            </div>
          </a-card>
        </a-col>
        
        <a-col :span="12" :xs="24" :sm="12" :md="12" :lg="12">
          <a-card class="stat-card">
            <div class="card-content">
              <div class="card-left">
                <div class="icon-box purple">
                  <icon-apps />
                </div>
              </div>
              <div class="card-right">
                <div class="title">投放中内容</div>
                <div class="value">
                  368
                  <span class="unit">个</span>
                </div>
              </div>
            </div>
          </a-card>
        </a-col>
        
        <a-col :span="12" :xs="24" :sm="12" :md="12" :lg="12">
          <a-card class="stat-card">
            <div class="card-content">
              <div class="card-left">
                <div class="icon-box orange">
                  <icon-message />
                </div>
              </div>
              <div class="card-right">
                <div class="title">日新增评论</div>
                <div class="value">
                  8,874
                  <span class="unit">个</span>
                </div>
              </div>
            </div>
          </a-card>
        </a-col>
        
        <a-col :span="12" :xs="24" :sm="12" :md="12" :lg="12">
          <a-card class="stat-card">
            <div class="card-content">
              <div class="card-left">
                <div class="icon-box green">
                  <icon-line-height />
                </div>
              </div>
              <div class="card-right">
                <div class="title">较昨日新增</div>
                <div class="value">
                  2.8
                  <span class="unit">%</span>
                  <icon-arrow-rise class="trend up" />
                </div>
              </div>
            </div>
          </a-card>
        </a-col>
      </a-row>
    </div>
  </div>
</template>

<script setup lang="ts">
import { 
  IconFile,
  IconApps,
  IconMessage,
  IconLineHeight,
  IconArrowRise
} from '@arco-design/web-vue/es/icon';
</script>

<style scoped>
.home-page {
  padding: 20px;
  background-color: white;
  min-height: 500px;
  color: #333;
  z-index: 100;
  position: relative;
}

h1 {
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 500;
  color: #1d2129;
}

.stat-cards {
  margin-bottom: 20px;
}

.stat-card {
  margin-bottom: 16px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card-content {
  display: flex;
  align-items: center;
}

.card-left {
  margin-right: 16px;
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.blue {
  background-color: #4080ff;
}

.purple {
  background-color: #a855f7;
}

.orange {
  background-color: #ff7d00;
}

.green {
  background-color: #14c9c9;
}

.card-right {
  flex: 1;
}

.title {
  font-size: 14px;
  color: #86909c;
  margin-bottom: 8px;
}

.value {
  font-size: 28px;
  font-weight: 600;
  color: #1d2129;
  display: flex;
  align-items: center;
}

.unit {
  font-size: 16px;
  color: #86909c;
  margin-left: 4px;
}

.trend {
  margin-left: 8px;
  font-size: 16px;
}

.trend.up {
  color: #f53f3f;
}
</style> 